﻿/*********************************************************************
 * \file   utils.h
 * \brief  杂项工具
 *
 * \author boyun
 * \date   June 2023
 *********************************************************************/

#pragma once

#include <random>

#include <boost/algorithm/hex.hpp>
#include <boost/uuid/detail/md5.hpp>
#include <boost/uuid/detail/sha1.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>

namespace util {
std::string make_uuid();

std::size_t cal_hash(const std::string& src);

std::size_t make_uuid_hash();

std::string cal_sha1(const std::string& src);

std::string cal_md5(const std::string& src);

std::string get_cpuid();

int make_default_color(int index);
}   // namespace util
